package com.bawei.module_mine.ui

import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.bawei.lib_mvi.Router
import com.bawei.lib_mvi.base.BaseActivity
import com.bawei.module_mine.adapter.HelpAdapter
import com.bawei.module_mine.databinding.ActivityAllHelpBinding
import com.bawei.module_mine.model.HelpModel

@Route(path = Router.Ui.ALL_HELP_ACTIVITY)
class AllHelpActivity : BaseActivity() {

    lateinit var helpAdapter : HelpAdapter
    var helpModel = listOf<HelpModel>()
    private val biding by lazy {
        ActivityAllHelpBinding.inflate(layoutInflater)
    }

    override fun initView() {
        super.initView()
        biding.ivBack.setOnClickListener {
            finish()
        }
        helpModel = listOf(
            HelpModel("如何找回账号/停机换绑?",""),
            HelpModel("手机号等其他方式登录失败",""),
            HelpModel("账号串绑",""),
            HelpModel("修改昵称/签名/头像",""),
            HelpModel("账号解绑/换绑",""),
            HelpModel("账号被盗",""),
            HelpModel("账号注销",""),
            HelpModel("实名认证相关",""),
            HelpModel("机构/音乐人/MCN认证相关",""),
            HelpModel("粉丝互通/视频同步",""),
            HelpModel("账号封禁/评级",""),
            HelpModel("账号其他问题",""),
            HelpModel("为什么微信/QQ注册登录失败?",""),
            HelpModel("抖音安全中心","")
         )
        helpAdapter = HelpAdapter(helpModel)
        biding.rvDevelop.layoutManager = LinearLayoutManager(this)
        biding.rvDevelop.adapter = helpAdapter
    }


    override fun getLayoutRootView(): View {
        return biding.root
    }

}